package com.sky.rabc.controller.order;

import com.sky.rabc.config.JsonResult;
import com.sky.rabc.dto.order.CreateOderDTO;
import com.sky.rabc.service.impl.AssignValueServiceImpl;
import com.sky.rabc.service.impl.OrderServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("order")
public class OrderController {
    @Resource
    private OrderServiceImpl oderService;
    @Resource
    private AssignValueServiceImpl assignValueService;
    @PostMapping("/create")
    public JsonResult<Void> createOder(@RequestBody CreateOderDTO createOderDTO) {
        oderService.createOrder(createOderDTO);
        return JsonResult.ok();
    }

    @GetMapping("/test")
    public void test(){
        assignValueService.doSomething("LHJ");
    }
}
